Permalink
Browse files

* syntax correction

  • Loading branch information...
jpolo committed Sep 16, 2011
1 parent da31faf commit b8b5e9bfbdff559fbd23092b8d7b2fb689df0481
Showing with 5 additions and 5 deletions.
  1. +2 −2 lib/std/Deferred.js
  2. +3 −3 lib/std/assert.js
View
@@ -304,7 +304,7 @@ define("std/Deferred", [ "std" ], function (std) {
* @constructor
* @param {Object} options
*/
- initialize : function initialize(options) {
+ initialize: function initialize(options) {
this.canceller = null;
this.timer = null;
@@ -314,7 +314,7 @@ define("std/Deferred", [ "std" ], function (std) {
this.configure(options);
- /*this = undefined*/
+ /*this.value = undefined*/
//this.__defineGetter__('promise', this.getPromise);
},
View
@@ -13,8 +13,6 @@ define("std/assert", [ "std" ], function () {
// Assert
//=========================================================================
module_("assert", function (assert) {
- var isUndefined = Object.isUndefined,
- isInstanceOf = Object.isInstanceOf;
properties_({
AssertionError: use_('error.AssertionError'),
@@ -155,7 +153,9 @@ define("std/assert", [ "std" ], function () {
* @param {string=} message
*/
error: function error(block, expected, message) {
- var actual;
+ var actual,
+ isUndefined = Object.isUndefined,
+ isInstanceOf = Object.isInstanceOf;
try {
block();
} catch (e) {

0 comments on commit b8b5e9b

Please sign in to comment.