Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Added a client side example

  • Loading branch information...
commit c54585d9a70e1ca1cbee367dc898bbd483e82e47 1 parent e9cbfee
Lakshan Perera authored

Showing 1 changed file with 3 additions and 3 deletions. Show diff stats Hide diff stats

  1. +3 3 lib/sugarless.js
6 lib/sugarless.js
@@ -113,7 +113,7 @@
113 113 var _sugarless = function(){
114 114 //set the object
115 115 var obj = arguments[0];
116   -
  116 +
117 117 //if the object is undefined exception will be thrown
118 118 if(obj === undefined){
119 119 throw new Error("Should provide an object");
@@ -190,9 +190,9 @@
190 190
191 191 _sugarless.invoke = function(){
192 192 var passed_args = Array.prototype.slice.call(arguments);
193   - //slice it again if the first argument is not a string (assume an array is passed)
  193 + //if an array is passed
194 194 if(passed_args.length === 1 && typeof passed_args[0] !== "string"){
195   - passed_args = passed_args[0].slice();
  195 + passed_args = passed_args[0];
196 196 }
197 197
198 198 //extract the method

0 comments on commit c54585d

Please sign in to comment.
Something went wrong with that request. Please try again.