Lines Matching refs:Thingy
521 function Thingy(a, b, c) { class
526 Thingy.MULTIPLY = 'multiply';
527 Thingy.INCREMENT = 'increment';
528 Thingy.INCREMENT_AND_MULTIPLY = 'incrementAndMultiply';
530 Thingy.prototype = {
535 notifier.performChange(Thingy.INCREMENT, function() {
549 notifier.performChange(Thingy.MULTIPLY, function() {
563 notifier.performChange(Thingy.INCREMENT_AND_MULTIPLY, function() {
575 Thingy.observe = function(thingy, callback) {
576 Object.observe(thingy, callback, [Thingy.INCREMENT,
577 Thingy.MULTIPLY,
578 Thingy.INCREMENT_AND_MULTIPLY,
582 Thingy.unobserve = function(thingy, callback) {
586 var thingy = new Thingy(2, 4);
589 Thingy.observe(thingy, observer2.callback);
611 { object: thingy, type: Thingy.INCREMENT, incremented: 3 },
613 { object: thingy, type: Thingy.MULTIPLY, multiplied: 2 },
617 type: Thingy.INCREMENT_AND_MULTIPLY,