Replace UAParser.result object with UAParser.getResult()

This commit is contained in:
Faisal Salman
2012-09-15 01:05:15 +07:00
parent e41fa1c829
commit 71b5300080
2 changed files with 11 additions and 11 deletions

View File

@@ -232,14 +232,17 @@
return ua;
};
this.setUA = function (uastring) {
ua = uastring;
this.result = {
this.getResult = function() {
return {
browser : this.getBrowser(),
engine : this.getEngine(),
os : this.getOS(),
device : this.getDevice()
};
};
this.setUA = function (uastring) {
ua = uastring;
return this;
};