From 341a87d8bd14a357a38f042fbfcced8a5d3970f4 Mon Sep 17 00:00:00 2001 From: Contra Date: Mon, 4 Mar 2013 14:55:44 -0700 Subject: [PATCH] fix clear typo --- dist/main.js | 2 +- lib/main.coffee | 2 +- mixer.js | 2 +- mixer.min.js | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/dist/main.js b/dist/main.js index 085876e..81c920d 100644 --- a/dist/main.js +++ b/dist/main.js @@ -54,7 +54,7 @@ Module.prototype.clear = function(silent) { var k, v, _ref; - _ref = this._props; + _ref = this._.props; for (k in _ref) { v = _ref[k]; this.remove(k, silent); diff --git a/lib/main.coffee b/lib/main.coffee index 97edb80..0dc1fb1 100644 --- a/lib/main.coffee +++ b/lib/main.coffee @@ -24,7 +24,7 @@ class Module extends EventEmitter return @ clear: (silent) -> - @remove k, silent for k,v of @_props + @remove k, silent for k,v of @_.props return @ has: (k) -> @_.props[k]? diff --git a/mixer.js b/mixer.js index d8ffef9..3532d15 100644 --- a/mixer.js +++ b/mixer.js @@ -415,7 +415,7 @@ require.register("mixer/dist/main.js", function(exports, require, module){ Module.prototype.clear = function(silent) { var k, v, _ref; - _ref = this._props; + _ref = this._.props; for (k in _ref) { v = _ref[k]; this.remove(k, silent); diff --git a/mixer.min.js b/mixer.min.js index 2ddf801..1c8f1f8 100644 --- a/mixer.min.js +++ b/mixer.min.js @@ -1 +1 @@ -(function(){function t(e,r,i){var n=t.resolve(e);if(null==n){i=i||e,r=r||"root";var o=Error('Failed to require "'+i+'" from "'+r+'"');throw o.path=i,o.parent=r,o.require=!0,o}var s=t.modules[n];return s.exports||(s.exports={},s.client=s.component=!0,s.call(this,s.exports,t.relative(n),s)),s.exports}var e=Object.prototype.hasOwnProperty;t.modules={},t.aliases={},t.resolve=function(r){"/"===r.charAt(0)&&(r=r.slice(1));for(var i=r+"/index.js",n=[r,r+".js",r+".json",r+"/index.js",r+"/index.json"],o=0;n.length>o;o++){var r=n[o];if(e.call(t.modules,r))return r}return e.call(t.aliases,i)?t.aliases[i]:void 0},t.normalize=function(t,e){var r=[];if("."!=e.charAt(0))return e;t=t.split("/"),e=e.split("/");for(var i=0;e.length>i;++i)".."==e[i]?t.pop():"."!=e[i]&&""!=e[i]&&r.push(e[i]);return t.concat(r).join("/")},t.register=function(e,r){t.modules[e]=r},t.alias=function(r,i){if(!e.call(t.modules,r))throw Error('Failed to alias "'+r+'", it does not exist');t.aliases[i]=r},t.relative=function(r){function i(t,e){for(var r=t.length;r--;)if(t[r]===e)return r;return-1}function n(e){var i=n.resolve(e);return t(i,r,e)}var o=t.normalize(r,"..");return n.resolve=function(e){var n=e.charAt(0);if("/"==n)return e.slice(1);if("."==n)return t.normalize(o,e);var s=r.split("/"),l=i(s,"deps")+1;return l||(l=0),e=s.slice(0,l+1).join("/")+"/deps/"+e},n.exists=function(r){return e.call(t.modules,n.resolve(r))},n},t.register("component-emitter/index.js",function(t,e,r){function i(t){return t?n(t):void 0}function n(t){for(var e in i.prototype)t[e]=i.prototype[e];return t}r.exports=i,i.prototype.on=function(t,e){return this._callbacks=this._callbacks||{},(this._callbacks[t]=this._callbacks[t]||[]).push(e),this},i.prototype.once=function(t,e){function r(){i.off(t,r),e.apply(this,arguments)}var i=this;return this._callbacks=this._callbacks||{},e._off=r,this.on(t,r),this},i.prototype.off=i.prototype.removeListener=i.prototype.removeAllListeners=function(t,e){this._callbacks=this._callbacks||{};var r=this._callbacks[t];if(!r)return this;if(1==arguments.length)return delete this._callbacks[t],this;var i=r.indexOf(e._off||e);return~i&&r.splice(i,1),this},i.prototype.emit=function(t){this._callbacks=this._callbacks||{};var e=[].slice.call(arguments,1),r=this._callbacks[t];if(r){r=r.slice(0);for(var i=0,n=r.length;n>i;++i)r[i].apply(this,e)}return this},i.prototype.listeners=function(t){return this._callbacks=this._callbacks||{},this._callbacks[t]||[]},i.prototype.hasListeners=function(t){return!!this.listeners(t).length}}),t.register("mixer/dist/main.js",function(t,e,r){(function(){var t,i,n,o={}.hasOwnProperty,s=function(t,e){function r(){this.constructor=t}for(var i in e)o.call(e,i)&&(t[i]=e[i]);return r.prototype=e.prototype,t.prototype=new r,t.__super__=e.prototype,t};t="undefined"!=typeof process&&null!==process?e("events").EventEmitter:e("emitter"),i=function(t){function e(t){this._={props:{}},null!=t&&this.set(t)}return s(e,t),e.prototype.get=function(t){return this._.props[t]},e.prototype.getAll=function(){return this._.props},e.prototype.set=function(t,e,r){var i;if(null!=t){if("object"==typeof t){for(i in t)e=t[i],this.set(i,e,r);return this}return this._.props[t]=e,r||(this.emit("change",t,e),this.emit("change:"+t,e)),this}},e.prototype.clear=function(t){var e,r,i;i=this._props;for(e in i)r=i[e],this.remove(e,t);return this},e.prototype.has=function(t){return null!=this._.props[t]},e.prototype.remove=function(t,e){return delete this._.props[t],e||(this.emit("change",t),this.emit("change:"+t),this.emit("remove",t),this.emit("remove:"+t)),this},e.prototype.toJSON=function(){return this.getAll()},e}(t),n={Module:i,Emitter:t},r.exports=n}).call(this)}),t.alias("component-emitter/index.js","mixer/deps/emitter/index.js"),t.alias("mixer/dist/main.js","mixer/index.js"),"object"==typeof exports?module.exports=t("mixer"):"function"==typeof define&&define.amd?define(function(){return t("mixer")}):window.mixer=t("mixer")})(); \ No newline at end of file +(function(){function t(e,r,i){var n=t.resolve(e);if(null==n){i=i||e,r=r||"root";var o=Error('Failed to require "'+i+'" from "'+r+'"');throw o.path=i,o.parent=r,o.require=!0,o}var s=t.modules[n];return s.exports||(s.exports={},s.client=s.component=!0,s.call(this,s.exports,t.relative(n),s)),s.exports}var e=Object.prototype.hasOwnProperty;t.modules={},t.aliases={},t.resolve=function(r){"/"===r.charAt(0)&&(r=r.slice(1));for(var i=r+"/index.js",n=[r,r+".js",r+".json",r+"/index.js",r+"/index.json"],o=0;n.length>o;o++){var r=n[o];if(e.call(t.modules,r))return r}return e.call(t.aliases,i)?t.aliases[i]:void 0},t.normalize=function(t,e){var r=[];if("."!=e.charAt(0))return e;t=t.split("/"),e=e.split("/");for(var i=0;e.length>i;++i)".."==e[i]?t.pop():"."!=e[i]&&""!=e[i]&&r.push(e[i]);return t.concat(r).join("/")},t.register=function(e,r){t.modules[e]=r},t.alias=function(r,i){if(!e.call(t.modules,r))throw Error('Failed to alias "'+r+'", it does not exist');t.aliases[i]=r},t.relative=function(r){function i(t,e){for(var r=t.length;r--;)if(t[r]===e)return r;return-1}function n(e){var i=n.resolve(e);return t(i,r,e)}var o=t.normalize(r,"..");return n.resolve=function(e){var n=e.charAt(0);if("/"==n)return e.slice(1);if("."==n)return t.normalize(o,e);var s=r.split("/"),l=i(s,"deps")+1;return l||(l=0),e=s.slice(0,l+1).join("/")+"/deps/"+e},n.exists=function(r){return e.call(t.modules,n.resolve(r))},n},t.register("component-emitter/index.js",function(t,e,r){function i(t){return t?n(t):void 0}function n(t){for(var e in i.prototype)t[e]=i.prototype[e];return t}r.exports=i,i.prototype.on=function(t,e){return this._callbacks=this._callbacks||{},(this._callbacks[t]=this._callbacks[t]||[]).push(e),this},i.prototype.once=function(t,e){function r(){i.off(t,r),e.apply(this,arguments)}var i=this;return this._callbacks=this._callbacks||{},e._off=r,this.on(t,r),this},i.prototype.off=i.prototype.removeListener=i.prototype.removeAllListeners=function(t,e){this._callbacks=this._callbacks||{};var r=this._callbacks[t];if(!r)return this;if(1==arguments.length)return delete this._callbacks[t],this;var i=r.indexOf(e._off||e);return~i&&r.splice(i,1),this},i.prototype.emit=function(t){this._callbacks=this._callbacks||{};var e=[].slice.call(arguments,1),r=this._callbacks[t];if(r){r=r.slice(0);for(var i=0,n=r.length;n>i;++i)r[i].apply(this,e)}return this},i.prototype.listeners=function(t){return this._callbacks=this._callbacks||{},this._callbacks[t]||[]},i.prototype.hasListeners=function(t){return!!this.listeners(t).length}}),t.register("mixer/dist/main.js",function(t,e,r){(function(){var t,i,n,o={}.hasOwnProperty,s=function(t,e){function r(){this.constructor=t}for(var i in e)o.call(e,i)&&(t[i]=e[i]);return r.prototype=e.prototype,t.prototype=new r,t.__super__=e.prototype,t};t="undefined"!=typeof process&&null!==process?e("events").EventEmitter:e("emitter"),i=function(t){function e(t){this._={props:{}},null!=t&&this.set(t)}return s(e,t),e.prototype.get=function(t){return this._.props[t]},e.prototype.getAll=function(){return this._.props},e.prototype.set=function(t,e,r){var i;if(null!=t){if("object"==typeof t){for(i in t)e=t[i],this.set(i,e,r);return this}return this._.props[t]=e,r||(this.emit("change",t,e),this.emit("change:"+t,e)),this}},e.prototype.clear=function(t){var e,r,i;i=this._.props;for(e in i)r=i[e],this.remove(e,t);return this},e.prototype.has=function(t){return null!=this._.props[t]},e.prototype.remove=function(t,e){return delete this._.props[t],e||(this.emit("change",t),this.emit("change:"+t),this.emit("remove",t),this.emit("remove:"+t)),this},e.prototype.toJSON=function(){return this.getAll()},e}(t),n={Module:i,Emitter:t},r.exports=n}).call(this)}),t.alias("component-emitter/index.js","mixer/deps/emitter/index.js"),t.alias("mixer/dist/main.js","mixer/index.js"),"object"==typeof exports?module.exports=t("mixer"):"function"==typeof define&&define.amd?define(function(){return t("mixer")}):window.mixer=t("mixer")})(); \ No newline at end of file